package com.lanou3g.code0427.study;

/**
 * If there are no bugs, it was created by Chen FengYao on 2018/4/27;
 * Otherwise, I don't know who created it either
 */

public class Foo implements AutoCloseable {
    public void fun() throws Exception{
        System.out.println("使用这个对象");
    }

    @Override
    public void close() {
        System.out.println("资源被关闭");
    }
}
